package zsw.Demo4;
import java.util.Scanner;
public class Laboratory {
    Tax tax1 = new Tax();
    Tax tax2 = new Tax();
    Tax tax3 = new Tax();
    public void twochoice(name a, name b, name c,name d,name e,name f) {
        System.out.println("| 1.选择打扫"+a.name+"和"+b.name+" 2.选择打扫"+a.name+"和"+c.name+" 3.选择打扫"+b.name+"和"+c.name+" |");
        Scanner input3 = new Scanner(System.in);
        int c3 = input3.nextInt();
        if (c3 == 1) {
            System.out.println("| 姓名:小明 打扫教室"+a.name+"和"+b.name+"   总评分:"+d.name+" |");
            tax1.money();
        }
        if (c3 == 2) {
            System.out.println("| 姓名:小明 打扫教室"+a.name+"和"+c.name+"   总评分:"+e.name+" |");
            tax2.money2();
        }
        if (c3 == 3) {
            System.out.println("| 姓名:小明 打扫教室"+b.name+"和"+c.name+"   总评分:"+f.name+" |");
            tax3.money3();
        }
    }
        public void threechoice(name a, name b, name c,name d,name e,name f) {
            System.out.println("| 1.选择打扫"+a.name+"和"+b.name+" 2.选择打扫"+a.name+"和"+c.name+" 3.选择打扫"+b.name+"和"+c.name+" |");
            Scanner input4 = new Scanner(System.in);
            int c4 = input4.nextInt();
            if (c4 == 1) {
                System.out.println("| 姓名:小红 打扫教室"+a.name+"和"+b.name+"   总评分:"+e.name+"|");
                tax2.money2();
            }
            if (c4 == 2) {
                System.out.println("| 姓名:小红 打扫教室"+a.name+"和"+c.name+"   总评分:"+d.name+"|");
                tax1.money();
            }
            if (c4 == 3) {
                System.out.println("| 姓名:小红 打扫教室"+b.name+"和"+c.name+"   总评分:"+f.name+"|");
                tax3.money3();
            }

        }
    }



